home *** CD-ROM | disk | FTP | other *** search
/ Nightshift Sound & Vision / Nightshift - Sound & Vision.iso / gfxmanager / install_gfxmanager < prev    next >
Text File  |  1995-10-17  |  6KB  |  207 lines

  1. ; $VER: Install.script V1.1 (11.8.95)
  2. ; ⌐ 1995 by Thomas Treder / Nightshift.
  3. ; This is the Amiga-Installer Script for GFXManager
  4.  
  5.  
  6. ;***** Set Language
  7.  
  8. (set selectlang (askchoice
  9.                    (prompt "")
  10.                    (help @askchoice-help)
  11.                    (choices "Deutsche Installation" "English Installation")
  12.                    (default 0)
  13.                  )
  14. )
  15.  
  16. (if (= selectlang 0)
  17.  (set @language "deutsch")
  18.  (set @language "english")
  19. )
  20.  
  21. (if (= @language "deutsch")
  22.  
  23.   (
  24.     (set MSG_wrong_OS        (cat "Sie ben÷tigen mindestens OS V2.04 \nzum starten des GFXManager !\n\n"
  25.                                   "GFXManager wird auf Ihrem System nicht laufen !"))
  26.     (set MSG_Installing           "Installiere jetzt GFXManager !")
  27.     (set MSG_InstallPatch         "Installiere Amiga OS3.1 - Patch !")
  28.     (set MSG_SelectPath           "WΣhlen Sie bitte das Zielverzeichnis fⁿr GFXManager \n\(Das Verzeichnis `GFXManager` wird autom. erzeugt !\)")
  29.     (set MSG_EditStartup          "Es werden einige ben÷tigte Anweisungen in die Datei \"s:user-startup\" eingetragen.")
  30.     (set MSG_InstallLibs          "Installiere IXEmul.Library ...")
  31.     (set MSG_InstallSetpatch      "Installing Setpatch V.40.14 ...")
  32.     (set MSG_InstallFonts         "Installiere ZeichensΣtze ...")
  33.     (set MSG_ChoiceTitle          "Verfⁿgt Ihr Rechner ⁿber einen Flie▀kommaprozessor ?")
  34.     (set MSG_Choice               "Keine FPU")
  35.     (set MSG_DeleteOld            "L÷sche alte Dateien ...")
  36.   )
  37.   (
  38.     (set MSG_wrong_OS        (cat "You need at least OS V2.04 to run GFXManager !\n\n"
  39.                                   "GFXManager will not run with your system configuration !"))
  40.     (set MSG_Installing           "Installing GFXManager now !")
  41.     (set MSG_InstallPatch         "Installing Amiga OS3.1 - Patch !")
  42.     (set MSG_SelectPath           "Select path to install GFXManager to \nThe drawer `GFXManager` will be autom. created !")
  43.     (set MSG_EditStartup          "Some required commands will be added to your \"s:user-startup\" file.")
  44.     (set MSG_InstallLibs          "Installing IXEmul.Library ...")
  45.     (set MSG_InstallSetpatch      "Installing Setpatch V.40.14 ...")
  46.     (set MSG_InstallFonts         "Installing Fonts ...")
  47.     (set MSG_ChoiceTitle          "Is your Computer equiped with a FloatingPointUnit ?")
  48.     (set MSG_Choice               "NO FPU")
  49.     (set MSG_DeleteOld            "Deleting old files ...")
  50.   )
  51. )
  52.  
  53. (set OS_VER (/ (getversion) 65536) )
  54.  
  55. (if(< OS_VER 37)
  56.   (abort MSG_wrong_OS)
  57. )
  58.  
  59. ;***** Copy Files
  60. (complete 0)
  61.  
  62. (copyfiles
  63.   (prompt MSG_Installing)
  64.   (help @copyfiles-help)
  65.   (source "")
  66.   (set pmcomdir
  67.               (askdir
  68.                      (prompt MSG_SelectPath)
  69.                      (help @askdir-help)
  70.                      (newpath)
  71.                      (default "SYS:")
  72.               )
  73.   )
  74.   (if (patmatch "#?GFXManager" pmcomdir)
  75.       (
  76.           (set Destination pmcomdir)
  77.       )
  78.       (
  79.           (set Destination (tackon pmcomdir "GFXManager"))
  80.       )
  81.    )
  82.   (dest Destination)
  83.   (pattern "~(Font#?|Libs#?|Install#?)")
  84.   (optional ("nofail") ("askuser"))
  85.   (infos)
  86.   (confirm)
  87. )
  88.  
  89. ;***** Install Amiga OS3.1-Patch
  90. (complete 40)
  91.  
  92. (if(= OS_VER 40)
  93.   (copyfiles
  94.     (prompt MSG_InstallPatch)
  95.     (help @copyfiles-help)
  96.     (source "MathIEEESingBasPatch/MathIEEESingBasPatch")
  97.     (dest "C:")
  98.     (optional ("nofail") ("askuser"))
  99.     (confirm)
  100.   )
  101.   (run "MathIEEESingBasPatch/MathIEEESingBasPatch")
  102. )
  103.  
  104. ;***** Rename needed Files
  105. (complete 50)
  106.  
  107. (set Path (tackon pmcomdir "GFXManager/bin/"))
  108. (if (exists (tackon Path "djpeg") (noreq))
  109.     (
  110.      (delete (tackon Path "djpeg") (safe) (prompt MSG_DeleteOld) (help @delete-help))
  111.     )
  112. )
  113. (if (exists (tackon Path "ppm2AGA") (noreq))
  114.     (
  115.      (delete (tackon Path "ppm2AGA") (safe) (prompt MSG_DeleteOld) (help @delete-help))
  116.     )
  117. )
  118. (set selectFPU (askchoice
  119.                   (prompt MSG_ChoiceTitle)
  120.                   (help @askchoice-help)
  121.                   (choices "FPU" MSG_Choice)
  122.                   (default 1)
  123.                )
  124. )
  125. (if (> (database "cpu") "68010")
  126.     (
  127.      (if (= selectFPU 0)
  128.          (
  129.              (rename (tackon Path "djpeg.020881") (tackon Path "djpeg") (safe))
  130.          )
  131.          (
  132.              (rename (tackon Path "djpeg.000") (tackon Path "djpeg") (safe))
  133.          )
  134.      )
  135.      (rename (tackon Path "ppm2AGA.020") (tackon Path "ppm2AGA") (safe))
  136.     )
  137.     (
  138.      (rename (tackon Path "djpeg.000") (tackon Path "djpeg") (safe))
  139.      (rename (tackon Path "ppm2AGA.000") (tackon Path "ppm2AGA") (safe))
  140.     )
  141. )
  142.  
  143. ;***** Install Fonts
  144. (complete 65)
  145.  
  146. (copyfiles
  147.   (prompt MSG_InstallFonts)
  148.   (help @copyfiles-help)
  149.   (source "Fonts")
  150.   (dest "Fonts:")
  151.   (all)
  152.   (optional ("nofail") ("askuser"))
  153.   (confirm)
  154. )
  155. (set @default-dest (expandpath pmcomdir))
  156.  
  157. ;***** Copy Library
  158. (complete 70)
  159.  
  160. (copylib
  161.         (prompt MSG_InstallLibs)
  162.         (help @copylib-help)
  163.         (source "Libs/ixemul.library")
  164.         (dest "Libs:")
  165.         (optional ("nofail") ("askuser"))
  166. )
  167.  
  168. ;***** Copy Library
  169. (complete 75)
  170.  
  171. (copylib
  172.         (prompt MSG_InstallSetpatch)
  173.         (source "Setpatch/Setpatch")
  174.         (dest "C:")
  175.         (optional ("nofail") ("askuser"))
  176.         (help @copylib-help)
  177. )
  178.  
  179. ;***** Edit Startup-Sequence
  180. (complete 90)
  181.  
  182. (startup "GFXManager"
  183.         (prompt MSG_EditStartup)
  184.         (help @startup-help)
  185.         (if(= OS_VER 40)
  186.              (command "if exists C:MathIEEESingBasPatch\n  C:MathIEEESingBasPatch\nendif\n")
  187.         )
  188.         (command "if exists \"" Destination "\"\n")
  189.         (command "   assign >NIL: GFXManager: \"" Destination "\"\n")
  190.         (command "   assign >NIL: GMData: GFXManager:GMData\n")
  191.         (command "   if exists GFXManager:bin\n")
  192.         (command "      path >NIL: GFXManager:bin add\n")
  193.         (command "      assign >NIL: C: GFXManager:bin add\n")
  194.         (command "   endif\n")
  195.         (command "endif")
  196. )
  197.  
  198. (makeassign "GFXManager" Destination (safe))
  199. (makeassign "GMData" "GFXManager:GMData" (safe))
  200. (run "assign >NIL: C: GFXManager:bin add")
  201. (run "path >NIL: GFXManager:bin add")
  202.  
  203. ;***** Finished
  204. (complete 100)
  205.  
  206.  
  207.